package com.fire.market.order;

import com.fire.market.product.api.dto.ItemInfo;

/**
 * ProductIntegrationService
 *
 * @author zwd
 * @date 2021/7/21
 */
public interface ProductIntegrationService {
    ItemInfo getItemDetail(Integer itemId);
    boolean decreaseItemStockByCache(Integer itemId, Integer amount);
    void increaseSales(Integer itemId, Integer amount);
    void syncDecreaseItemStockByMq(Integer itemId, Integer amount, String sequenceId, Integer userId);
    void increaseItemStockByCache(Integer itemId, Integer amount);
    void decreaseSales(Integer itemId, Integer amount);
}
